package com.csf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.annotation.PostConstruct;

@SpringBootApplication
public class Application {
//    因为redis和elasticSearch都用了netty，所以启动的话会造成冲突，为了避免冲突，启动的时候，更改一下设置
    @PostConstruct
    public void init(){
        System.setProperty("es.set.netty.runtime.available.processors","false");
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
